import request from '@/utils/request'

// 查询门店营业时间配置列表
export function listStoreBusinessTime(query) {
  return request({
    url: '/core/storeBusinessTime/list',
    method: 'get',
    params: query
  })
}

// 查询门店营业时间配置详细
export function getStoreBusinessTime(id) {
  return request({
    url: '/core/storeBusinessTime/' + id,
    method: 'get'
  })
}

// 新增门店营业时间配置
export function addStoreBusinessTime(data) {
  return request({
    url: '/core/storeBusinessTime',
    method: 'post',
    data: data
  })
}

// 修改门店营业时间配置
export function updateStoreBusinessTime(data) {
  return request({
    url: '/core/storeBusinessTime',
    method: 'put',
    data: data
  })
}

// 删除门店营业时间配置
export function delStoreBusinessTime(id) {
  return request({
    url: '/core/storeBusinessTime/' + id,
    method: 'delete'
  })
}
